package com.nd.sdp.android.young.app.a.implementation.view;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.google.auto.service.AutoService;
import com.nd.sdp.android.young.app.a.api.IStartA;
import com.nd.sdp.android.young.app.a.implementation.R;

public class AActivity extends AppCompatActivity {

    @AutoService(IStartA.class)
    public static class StartA implements IStartA {

        @Override
        public void start(Context context) {
            AActivity.start(context);
        }

    }

    public static void start(Context context) {
        Intent starter = new Intent(context, AActivity.class);
        context.startActivity(starter);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_a);
    }

}
